package com.hs.wa.service;


import com.springnew.dao.ArticleMapper;
import com.springnew.model.ArticleWithBLOBs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ArticleService {

    @Autowired
    private ArticleMapper articleMapper;

    public int addArticleService(ArticleWithBLOBs bs) {
        int count2 = articleMapper.insert(bs);
        System.out.println("    " + count2);
        return count2;
    }


}
